[INFO] fetching crate redlock-rs 0.2.1...
[INFO] checking redlock-rs-0.2.1 against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] extracting crate redlock-rs 0.2.1 into /workspace/builds/worker-7/source
[INFO] validating manifest of crates.io crate redlock-rs 0.2.1 on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking crates.io crate redlock-rs 0.2.1
[INFO] finished tweaking crates.io crate redlock-rs 0.2.1
[INFO] tweaked toml for crates.io crate redlock-rs 0.2.1 written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] e002cb16dc8ea7a870f239876b7857ac1db643ef1ccd6d3ac6ad537cb0e71bcc
[INFO] running `Command { std: "docker" "start" "-a" "e002cb16dc8ea7a870f239876b7857ac1db643ef1ccd6d3ac6ad537cb0e71bcc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e002cb16dc8ea7a870f239876b7857ac1db643ef1ccd6d3ac6ad537cb0e71bcc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e002cb16dc8ea7a870f239876b7857ac1db643ef1ccd6d3ac6ad537cb0e71bcc", kill_on_drop: false }`
[INFO] [stdout] e002cb16dc8ea7a870f239876b7857ac1db643ef1ccd6d3ac6ad537cb0e71bcc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f8d00ec10d6c9f41522b4fb5134ac44cce4fc630cfae998a848aa2fbc1d2fb63
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "f8d00ec10d6c9f41522b4fb5134ac44cce4fc630cfae998a848aa2fbc1d2fb63", kill_on_drop: false }`
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]     Checking once_cell v1.4.1
[INFO] [stderr]     Checking cache-padded v1.1.1
[INFO] [stderr]     Checking fastrand v1.3.5
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking parking v2.0.0
[INFO] [stderr]     Checking waker-fn v1.1.0
[INFO] [stderr]    Compiling getrandom v0.1.15
[INFO] [stderr]     Checking event-listener v2.4.0
[INFO] [stderr]     Checking vec-arena v0.5.2
[INFO] [stderr]     Checking matches v0.1.8
[INFO] [stderr]     Checking tinyvec v0.3.4
[INFO] [stderr]     Checking async-task v3.0.0
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]    Compiling const_fn v0.4.2
[INFO] [stderr]     Checking parking v1.0.6
[INFO] [stderr]     Checking atomic-waker v1.0.0
[INFO] [stderr]     Checking scoped-tls v1.0.0
[INFO] [stderr]     Checking percent-encoding v2.1.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.9
[INFO] [stderr]     Checking itoa v0.4.6
[INFO] [stderr]     Checking dtoa v0.4.6
[INFO] [stderr]    Compiling standback v0.2.10
[INFO] [stderr]    Compiling time v0.2.19
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]     Checking unicode-bidi v0.3.4
[INFO] [stderr]     Checking concurrent-queue v1.2.2
[INFO] [stderr]     Checking async-mutex v1.3.0
[INFO] [stderr]     Checking futures-task v0.3.5
[INFO] [stderr]     Checking memchr v2.3.3
[INFO] [stderr]     Checking unicode-normalization v0.1.13
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking net2 v0.2.35
[INFO] [stderr]     Checking socket2 v0.3.15
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]    Compiling syn v1.0.40
[INFO] [stderr]     Checking multitask v0.2.0
[INFO] [stderr]     Checking async-channel v1.4.2
[INFO] [stderr]     Checking futures-lite v0.1.11
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking mio v0.6.22
[INFO] [stderr]     Checking polling v0.1.9
[INFO] [stderr]     Checking kv-log-macro v1.0.7
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking async-io v0.1.11
[INFO] [stderr]     Checking blocking v0.5.2
[INFO] [stderr]     Checking idna v0.2.0
[INFO] [stderr]     Checking async-executor v0.1.2
[INFO] [stderr]     Checking async-std v1.6.3
[INFO] [stderr]     Checking mio-uds v0.6.8
[INFO] [stderr]     Checking tokio v0.2.22
[INFO] [stderr]     Checking url v2.1.1
[INFO] [stderr]     Checking tokio-util v0.3.1
[INFO] [stderr]    Compiling pin-project-internal v0.4.23
[INFO] [stderr]    Compiling time-macros-impl v0.1.1
[INFO] [stderr]    Compiling async-trait v0.1.40
[INFO] [stderr]     Checking time-macros v0.1.0
[INFO] [stderr]     Checking pin-project v0.4.23
[INFO] [stderr]     Checking futures-util v0.3.5
[INFO] [stderr]     Checking combine v4.3.2
[INFO] [stderr]     Checking redis v0.17.0
[INFO] [stderr]     Checking redlock-rs v0.2.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range`
[INFO] [stdout]  --> src/redlock.rs:9:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rand::distributions::{IndependentSample, Range};
[INFO] [stdout]   |                           ^^^^^^^^^^^^^^^^^  ^^^^^ no `Range` in `distributions`
[INFO] [stdout]   |                           |
[INFO] [stdout]   |                           no `IndependentSample` in `distributions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_time` in crate `time`
[INFO] [stdout]   --> src/redlock.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let time = time::get_time();
[INFO] [stdout]    |                          ^^^^^^^^ not found in `time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]  --> src/redlock.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::thread::sleep_ms;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/redlock.rs:142:13
[INFO] [stdout]     |
[INFO] [stdout] 142 |             sleep_ms(n);
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range`
[INFO] [stdout]  --> src/redlock.rs:9:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | use rand::distributions::{IndependentSample, Range};
[INFO] [stdout]   |                           ^^^^^^^^^^^^^^^^^  ^^^^^ no `Range` in `distributions`
[INFO] [stdout]   |                           |
[INFO] [stdout]   |                           no `IndependentSample` in `distributions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `get_time` in crate `time`
[INFO] [stdout]   --> src/redlock.rs:99:26
[INFO] [stdout]    |
[INFO] [stdout] 99 |         let time = time::get_time();
[INFO] [stdout]    |                          ^^^^^^^^ not found in `time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]  --> src/redlock.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::thread::sleep_ms;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `std::thread::sleep_ms`: replaced by `std::thread::sleep`
[INFO] [stdout]    --> src/redlock.rs:142:13
[INFO] [stdout]     |
[INFO] [stdout] 142 |             sleep_ms(n);
[INFO] [stdout]     |             ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/redlock.rs:89:119
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let result : RedisResult<Value> = redis::cmd("SET").arg(resource).arg(val).arg("nx").arg("px").arg(ttl).query(&con);
[INFO] [stdout]    |                                                                                                                       ^^^^ types differ in mutability
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                       found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/redlock.rs:89:119
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let result : RedisResult<Value> = redis::cmd("SET").arg(resource).arg(val).arg("nx").arg("px").arg(ttl).query(&con);
[INFO] [stdout]    |                                                                                                                       ^^^^ types differ in mutability
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                       found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/redlock.rs:153:78
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let result : RedisResult<i32> = script.key(resource).arg(val).invoke(&con);
[INFO] [stdout]     |                                                                              ^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                        found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/redlock.rs:153:78
[INFO] [stdout]     |
[INFO] [stdout] 153 |         let result : RedisResult<i32> = script.key(resource).arg(val).invoke(&con);
[INFO] [stdout]     |                                                                              ^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                        found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `redlock-rs`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/redlock.rs:218:53
[INFO] [stdout]     |
[INFO] [stdout] 218 |     redis::cmd("SET").arg(&*key).arg(&*val).execute(&con);
[INFO] [stdout]     |                                                     ^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                        found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/redlock.rs:231:42
[INFO] [stdout]     |
[INFO] [stdout] 231 |     redis::cmd("DEL").arg(&*key).execute(&con);
[INFO] [stdout]     |                                          ^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                        found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/redlock.rs:242:64
[INFO] [stdout]     |
[INFO] [stdout] 242 |     let _ : () = redis::cmd("SET").arg(&*key).arg(&*val).query(&con).unwrap();
[INFO] [stdout]     |                                                                ^^^^ types differ in mutability
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected mutable reference `&mut dyn redis::ConnectionLike`
[INFO] [stdout]                        found reference `&redis::Connection`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "f8d00ec10d6c9f41522b4fb5134ac44cce4fc630cfae998a848aa2fbc1d2fb63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f8d00ec10d6c9f41522b4fb5134ac44cce4fc630cfae998a848aa2fbc1d2fb63", kill_on_drop: false }`
[INFO] [stdout] f8d00ec10d6c9f41522b4fb5134ac44cce4fc630cfae998a848aa2fbc1d2fb63
